from rest_framework.response import Response
from rest_framework.views import APIView

from xyz.models import Article,User
from yc1997512.serializers.articlecontent import CommentSerializer,ArticleContentSerializer


class ArticleContentAPIView(APIView):
    '''文章详情'''
    def get(self, request, id):
        article = Article.objects.get(id=id)
        serializer = ArticleContentSerializer(article)
        return Response(serializer.data)





